package com.trg.designmodel.bridge.service;

/**
 * @ClassName: Phone
 * @Description: 抽象类(Abstraction) :维护了 Implementor / 即它的实现类 ConcreteImplementorA.., 二者是聚合关系, Abstraction充当桥接类
 * @Author: tangrg
 * @Date: 2021/7/5 15:15
 * @Version: 1.0
 * @Return:
 **/
public abstract class Phone {
    //聚合行为实现类的接口
    Brand brand;

    public Phone(Brand brand) {
        this.brand = brand;
    }

    public void call() {
        brand.call();
    }

    public void send() {
        brand.send();
    }

}
